package com.spring.springboot.user1.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.spring.springboot.user1.entity.User1Entity;
import com.spring.springboot.user1.jpa.User1JPA;


/**
*@author LSY
*Time: 2018年12月18日下午5:49:10
*
*
*/
@RestController("user1Controller")
@RequestMapping("/user1")
public class User1Controller {

	@Autowired 
	private User1JPA user1Jpa;

	@RequestMapping(value = "/user1", method = RequestMethod.GET)
	public List<User1Entity> getAll(){
		return user1Jpa.findAll();
	}
}
